package com.changhongit.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.changhongit.dao.AssessDao;
import com.changhongit.entity.Assess;
import com.changhongit.service.AssessService;
import com.changhongit.util.PageView;

@Transactional
@Service("assessService")
public class AssessServiceImpl implements AssessService {
	@Autowired
	private AssessDao assessDao;

	public PageView query(PageView pageView, Assess logs) {
		List<Assess> list = assessDao.query(pageView, logs);
		pageView.setRecords(list);
		return pageView;
	}

	public void add(Assess logs) {
		assessDao.add(logs);
	}

	public void delete(String id) {
		assessDao.delete(id);
	}

	public Assess getById(String id) {
		return assessDao.getById(id);
	}

	public void modify(Assess logs) {
		assessDao.modify(logs);
	}

}
